Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Re: Compute URL?

myVar is the value you define for var in your viewPanel, so you're always getting the relevant NotesXSPViewEntry object. getDocument() gets the back-end NotesDocument and getUniversalID() gets its UNID to include in your computed URL.

So your viewPanel will be comething like this in the source panel:
<xp:viewPanel id="viewPanel1" rows="30" var="myVar">

Now that I've looked into it further, the problem is @AttachmentNames - it nly works on the currentDocument object, so expects a document to be open. I've got a solution which may seem a bit complex (it requires you to use a repeat control in your view column) but actually is fairly straightforward. I'll post it on the notes and domino app dev wiki and add a link here.

The solution will only work though if you're wanting to open the first attachment in a NotesRichTextItem / number of NotesRichTextItems. This is because the getEmbeddedObjects() method of NotesDocument cannot get a handle on attachments. I'm assuming that's not a problem for you.


Feedback response number WEBB84BN8J created by ~Maria Xanjumiberg on 04/08/2010

Open Attachment from XPage View (~Lisa Fezfreege... 8.Apr.10)
. . An alternative option (~Maria Xanjumib... 8.Apr.10)
. . . . Open attachment from xpage view (~Helga Asafanas... 21.Apr.10)
. . Open Attachment from View (~Maria Xanjumib... 8.Apr.10)
. . . . Compute URL? (~Lisa Fezfreege... 8.Apr.10)
. . . . . . Re: Compute URL? (~Maria Xanjumib... 8.Apr.10)
. . . . . . . . Here's the article showing two ways... (~Maria Xanjumib... 9.Apr.10)
. . . . . . . . . . Thanks! (~Lisa Fezfreege... 12.Apr.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS